<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>子代选择器</title>
  <style>
    li > a{
      color: skyblue;
    }
    p > a{
      color: red;
    }
  </style>
</head>
<body>
  <ul>
    <li><a href="">张三</a></li>
    <li><a href="">赵四</a></li>
    <li><a href="">王五</a></li>
    <p><a href="">李六</a></p>

  </ul>

</body>
</html>
